import request from '@/utils/request'

// 查询订单列表
export function listOrder(query) {
  return request({
    url: '/admin/powerServer/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrder(orderNo) {
  return request({
    url: '/admin/order/detail/' + orderNo,
    method: 'get'
  })
}

// 修改收货地址
export function send(data) {
  return request({
    url: '/admin/order/send',
    method: 'put',
    data: data
  })
}

// 收货
export function complete(orderNo) {
  return request({
    url: '/admin/order/complete/' + orderNo,
    method: 'put'
  })
}


// 修改收货地址
export function updateOrder(data) {
  return request({
    url: '/admin/order',
    method: 'put',
    data: data
  })
}
//地区列表
export function getAreaList(id) {
  return request({
    url: '/system/area/getAreaList?parentId=' + id,
    method: 'get'
  })
}

// 导出用户
export function exportOrder(query) {
  return request({
    url: '/admin/order/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/admin/order/importTemplate',
    method: 'get'
  })
}


// 查询订单列表
export function powerServersz(query) {
  return request({
    url: '/admin/powerServer/list',
    method: 'get',
    params: query
  })
}

// 修改收货地址
export function powerServer(data) {
  return request({
    url: '/admin/powerServer',
    method: 'put',
    data: data
  })
}


// 查询订单列表
export function creativeorderlist(query) {
  return request({
    url: '/admin/creative/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单列表
export function creativesz(query) {
  return request({
    url: '/admin/creative/list',
    method: 'get',
    params: query
  })
}

// 修改收货地址
export function creative(data) {
  return request({
    url: '/admin/creative',
    method: 'put',
    data: data
  })
}




